/*
 * Copyright (C), 2002-2016, 苏宁易购电子商务有限公司
 * FileName: EmployeeTotalSaleInfo.java
 * Author:   15050536
 * Date:     2016年12月6日 下午4:33:12
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.suning.sawp.po.tm;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 时光机-员工总销售记录信息 实体类
 *
 * @author 15050536 石键平
 */
@Entity(name = "bi_employee_total_sale_info")
public class EmployeeTotalSaleInfo implements Serializable{
	
	/**
	 */
	private static final long serialVersionUID = 3877220379395629985L;

	/**
	 * 自增主键
	 */
	private Long id;
	
	/**
	 * 销售员工号
	 */
	private String employeeId;
	
	/**
	 * 销售总金额 (从第一笔订单开始，到2016年12月31号截止)
	 */
	private BigDecimal amount;
	
	/**
	 * 销售总订单数量
	 */
	private int orderNum;
	
	/**
	 * 处理时间
	 */
	private String etlTime;
	
	@Id
    @Column(name = "id")
	@GeneratedValue(strategy = GenerationType.TABLE)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "employee_id")
	public String getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(String employeeId) {
		this.employeeId = employeeId;
	}

	@Column(name = "amount")
	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	@Column(name = "order_num")
	public int getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}

	@Column(name = "etl_time")
	public String getEtlTime() {
		return etlTime;
	}

	public void setEtlTime(String etlTime) {
		this.etlTime = etlTime;
	}
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,ToStringStyle.SHORT_PREFIX_STYLE);
	}
}
